﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Users_LeftMaster : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void HyperLink2_Load(object sender, EventArgs e)
    {
        string[] roles = Roles.GetRolesForUser(Membership.GetUser().UserName);
        foreach (string role in roles)
        {
            if (role=="admin")
            {
                HyperLink link = (HyperLink)sender;
                link.NavigateUrl = "~/Admin/GetFlightList.aspx";
                link.Visible = true;
                link.Enabled = true;
            }
        }
    }
}